<%@ page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ page import="com.wyzz.hr.pojo.Userinfo"%>
<%@ page import="java.net.URLDecoder" language="java"%>
<%@ page import="java.net.URLEncoder" language="java"%>
<%@ taglib prefix="s" uri="strutsTags"%>
<%@ taglib prefix="ty" uri="/wyzzTags"%>
<%@ taglib uri="/WEB-INF/config/jenkov/tabbedpanetag.tld" prefix="tabs"%>
<%@ taglib uri="/WEB-INF/config/jenkov/ajaxtags.tld" prefix="ajax"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<base href="<%=basePath%>">
		<%
			String tabRequestIndex = request.getParameter("tab");
			if (tabRequestIndex == null) {
				request.getParameterMap().put("tab", "1");
			} else if (tabRequestIndex.trim().length() > 0) {
				int index = Integer.parseInt(tabRequestIndex);
				if (index < 1 || index > 5) {
					request.getParameterMap().put("tab", "1");
				}
			}
			String empNo = request.getParameter("empNo");
			String empName = request.getParameter("empName");
			String empNameCode = null;
			if (empName != null) {
				empName = URLDecoder.decode(new String(empName
						.getBytes("ISO8859_1"), "utf-8"), "utf-8");
				empNameCode = URLEncoder.encode(URLEncoder.encode(empName,
						"utf-8"), "utf-8");
			}
		%>
		<script type="text/javascript"
			src="resource/js/jenkov/jenkov_ajaxScript.js"></script>
		<link href="<s:url value="/resource/css/tab.css"/>" rel="stylesheet"
			type="text/css" />
		<title>员工资料</title>
	</head>
	<body id="<%=empNo%>">
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td width="2%">
					<img src="resource/images/h3Arrow.gif">
				</td>
				<td width="82%" class="titlepage">
					<h3><%=empName%>的详细资料
					</h3>
				</td>
			</tr>
		</table>
		<tabs:tabbedPane tabParam="tab" defaultTab="1" sessionKey="tab">
			<table cellspacing="0" cellpadding="5" width="100%">
				<tabs:activeTab tabId="1">
					<td class="activeTab">
						<ajax:link targetElement="bodyId">
							<a
								href="profile/my_basic_info.jsp?tab=1&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">基本资料</a>
						</ajax:link>
					</td>
				</tabs:activeTab>
				<tabs:inactiveTab tabId="1">
					<td class="inactiveTab">
						<ajax:link targetElement="bodyId">
							<a
								href="profile/my_basic_info.jsp?tab=1&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">基本资料</a>
						</ajax:link>
					</td>
				</tabs:inactiveTab>
				<tabs:activeTab tabId="2">
					<td class="activeTab">
						<ajax:link targetElement="bodyId">
							<a
								href="profile/my_basic_info.jsp?tab=2&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">附加资料</a>
						</ajax:link>
					</td>
				</tabs:activeTab>
				<tabs:inactiveTab tabId="2">
					<td class="inactiveTab">
						<ajax:link targetElement="bodyId">
							<a
								href="profile/my_basic_info.jsp?tab=2&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">附加资料</a>
						</ajax:link>
					</td>
				</tabs:inactiveTab>
				<tabs:activeTab tabId="3">
					<td class="activeTab">
						<ajax:link targetElement="bodyId">
							<a
								href="profile/my_basic_info.jsp?tab=3&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">人事档案</a>
						</ajax:link>
					</td>
				</tabs:activeTab>
				<tabs:inactiveTab tabId="3">
					<td class="inactiveTab">
						<ajax:link targetElement="bodyId">
							<a
								href="profile/my_basic_info.jsp?tab=3&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">人事档案</a>
						</ajax:link>
					</td>
				</tabs:inactiveTab>
				<ty:auth auths="201 or 211">
					<tabs:activeTab tabId="4">
						<td class="activeTab">
							<ajax:link targetElement="bodyId">
								<a
									href="profile/my_basic_info.jsp?tab=4&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">薪资发放</a>
							</ajax:link>
						</td>
					</tabs:activeTab>
					<tabs:inactiveTab tabId="4">
						<td class="inactiveTab">
							<ajax:link targetElement="bodyId">
								<a
									href="profile/my_basic_info.jsp?tab=4&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">薪资发放</a>
							</ajax:link>
						</td>
					</tabs:inactiveTab>
				</ty:auth>
				<ty:auth auths="401 or 411">
					<tabs:activeTab tabId="5">
						<td class="activeTab">
							<ajax:link targetElement="bodyId">
								<a
									href="profile/my_basic_info.jsp?tab=5&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">每月考勤</a>
							</ajax:link>
						</td>
					</tabs:activeTab>
					<tabs:inactiveTab tabId="5">
						<td class="inactiveTab">
							<ajax:link targetElement="bodyId">
								<a
									href="profile/my_basic_info.jsp?tab=5&empNo=<%=empNo%>&empName=<%=empNameCode%>&date=<%=new java.util.Date().getTime()%>">每月考勤</a>
							</ajax:link>
						</td>
					</tabs:inactiveTab>
				</ty:auth>
				<tr id="currEmpId" name="<%=empNo%>">
					<td colspan="5" id="tabContent" class="tabContent">
						<tabs:tabContent tabId="1">
							<IFRAME ID="IFrame1" name="IFrame1" marginWidth="0"
								marginHeight="0" FRAMEBORDER="0" align="left" width="100%"
								height="450"
								SRC="profile/updateEmpInit.action?empNo=<%=empNo%>&createFlag=<s:property value='createFlag'/>"
								style="overflow-y: auto;"></IFRAME>
						</tabs:tabContent>
						<tabs:tabContent tabId="2">
							<IFRAME ID="IFrame1" name="IFrame1" marginWidth="0"
								marginHeight="0" FRAMEBORDER="0" align="left" width="100%"
								height="450" SRC="profile/empAdditional.action?empNo=<%=empNo%>"
								style="overflow-y: auto;"></IFRAME>
						</tabs:tabContent>
						<tabs:tabContent tabId="3">
							<IFRAME ID="IFrame1" name="IFrame1" marginWidth="0"
								marginHeight="0" FRAMEBORDER="0" align="left" width="100%"
								height="450" SRC="profile/empProfile.action?empNo=<%=empNo%>"
								style="overflow-y: auto;"></IFRAME>
						</tabs:tabContent>
						<ty:auth auths="201 or 211">
							<tabs:tabContent tabId="4">
								<IFRAME ID="IFrame1" name="IFrame1" marginWidth="0"
									marginHeight="0" FRAMEBORDER="0" align="left" width="100%"
									height="450"
									SRC="profile/basicSalaryPaid.action?empId=<%=empNo%>"
									style="overflow-y: auto;"></IFRAME>
							</tabs:tabContent>
						</ty:auth>
						<ty:auth auths="401 or 411">
							<tabs:tabContent tabId="5">
								<IFRAME ID="IFrame1" name="IFrame1" marginWidth="0"
									marginHeight="0" FRAMEBORDER="0" align="left" width="100%"
									height="450"
									SRC="profile/searchEmpAttendmonthly.action?attdEmpId=<%=empNo%>"
									style="overflow-y: auto;"></IFRAME>
							</tabs:tabContent>
						</ty:auth>
					</td>
				</tr>
			</table>
		</tabs:tabbedPane>

	</body>
</html>
